<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
    <title>发货信息管理</title>
    <meta name="decorator" content="ani"/>
    <script type="text/javascript">

        $(document).ready(function() {
            jp.ajaxForm("#inputForm",function(data){
                if(data.success){
                    jp.success(data.msg);
                    jp.go("${ctx}/ordersstore/ordersStore");
                }else{
                    jp.error(data.msg);
                    $("#inputForm").find("button:submit").button("reset");
                }
            });

        });
    </script>
</head>
<body>
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <a class="panelButton" href="${ctx}/ordersstore/ordersStore"><i class="ti-angle-left"></i> 返回</a>
                    </h3>
                </div>
                <div class="panel-body">
                    <form:form id="inputForm" modelAttribute="express" action="${ctx}/express/express/new" method="post" class="form-horizontal">
                        <form:hidden path="id"/>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品订单编号：</label>
                            <div class="col-sm-10">
                                <sys:gridselect url="${ctx}/ordersstore/ordersStore/data" id="ordersstore" name="ordersstore.id" value="${express.ordersstore.id}" labelName="ordersstore.ordersNo" labelValue="${express.ordersstore.ordersNo}"
                                                title="选择商品订单编号" cssClass="form-control " fieldLabels="订单编号" fieldKeys="ordersNo" searchLabels="订单编号" searchKeys="ordersNo" disabled="disabled" ></sys:gridselect>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">购买用户：</label>
                            <div class="col-sm-10">
                                <sys:gridselect url="${ctx}/member/member/data" id="member" name="member.id" value="${express.member.id}" labelName="member.loginName" labelValue="${express.member.loginName}"
                                                title="选择用户id" cssClass="form-control " fieldLabels="登录名|昵称" fieldKeys="loginName|nickName" searchLabels="登录名|昵称" searchKeys="loginName|nickName" disabled="disabled" ></sys:gridselect>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">快递公司：</label>
                            <div class="col-sm-10">
                                <form:input path="gongsId" htmlEscape="false"    class="form-control "/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">快递单号：</label>
                            <div class="col-sm-10">
                                <form:input path="orderForm" htmlEscape="false"    class="form-control "/>
                            </div>
                        </div>
                        <%--<div class="form-group">--%>
                            <%--<label class="col-sm-2 control-label">发货时间：</label>--%>
                            <%--<div class="col-sm-10">--%>
                                <%--<form:input path="time" htmlEscape="false"    class="form-control "/>--%>
                            <%--</div>--%>
                        <%--</div>--%>

                        <%--<div class="form-group">--%>
                            <%--<label class="col-sm-2 control-label">操作员信息：</label>--%>
                            <%--<div class="col-sm-10">--%>
                                <%--<form:input path="founder" htmlEscape="false"    class="form-control "/>--%>
                            <%--</div>--%>
                        <%--</div>--%>
                        <c:if test="${mode == 'saveNew' || mode=='edit'}">
                            <div class="col-lg-3"></div>
                            <div class="col-lg-6">
                                <div class="form-group text-center">
                                    <div>
                                        <button class="btn btn-primary btn-block btn-lg btn-parsley" data-loading-text="正在提交...">提 交</button>
                                    </div>
                                </div>
                            </div>
                        </c:if>
                    </form:form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>